import java.util.Scanner;

public class Work1.8 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入一个正整数: ");
        int number = scanner.nextInt();
        // 分解质因数
        System.out.print(number + "=");
        for (int factor = 2; factor <= number; factor++) {
            // 当number能被factor整除时，factor是number的一个质因数
            while (number % factor == 0) {
                System.out.print(factor);
                number /= factor; // 更新number为除以factor后的值
                if (number > 1) {
                    System.out.print("*");
                }
            }
        }
        scanner.close();
    }
}
